package net.thumbtack.onepm.tests;


import org.junit.*;
import org.openqa.selenium.By;
import org.openqa.selenium.interactions.Actions;

/**
 * Created with IntelliJ IDEA.
 * User: efrolova
 * Date: 02.10.12
 * Time: 16:39
 * To change this template use File | Settings | File Templates.
 */
public class SendMessageForCandidatePage extends TestBase {
    @Test

    public void SignUp() throws Exception {
       LoginFB a = new LoginFB();
        a.LogFB();
       driver.get(baseUrl+"/people/"+idCandidate);

        driver.findElement(By.cssSelector("a.button.chat > span.text")).click();
        driver.findElement(By.id("message")).clear();
        driver.findElement(By.id("message")).clear();
        driver.findElement(By.id("message")).sendKeys(textMessage);
        driver.findElement(By.id("send-message-button")).click();
        Thread.sleep(1000);
        driver.findElement(By.cssSelector("span.ui-icon.ui-icon-closethick")).click();

    }
}
